<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
<!--  修饰符：lazy  输入框输完了在响应-->
  <input type="text" v-model.lazy="message">
    <h2>{{message}}</h2>

<!--    修饰符：number  改变类型-->
    <input type="number" v-model.number="age">
    <h2>{{age}}--{{typeof age}}</h2>

<!--    修饰符：trim   除去空格-->
    <input type="text" v-model.trim="name">
    <h2>输入你的名字：{{name}}</h2>
</div>



<script src="../js/vue.js"></script>
<script>
    const  app = new Vue({
      el:'#app',
      data:{
        message: '卢本伟牛逼！',
          age:0,
          name:''
      }
    })
</script>
</body>
</html>